CVE-2022-49726
clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()
Description
In the Linux kernel, the following vulnerability has been resolved: clocksource: hyper-v: unexport __init-annotated hv_init_clocksource() EXPORT_SYMBOL and __init is a bad combination because the .init.text section is freed up after the initialization. Hence, modules cannot use symbols annotated __init. The access to a freed symbol may end up with kernel panic. modpost used to detect it, but it has been broken for a decade. Recently, I fixed modpost so it started to warn it again, then this showed up in linux-next builds. There are two ways to fix it: - Remove __init - Remove EXPORT_SYMBOL I chose the latter for this case because the only in-tree call-site, arch/x86/kernel/cpu/mshyperv.c is never compiled as modular. (CONFIG_HYPERVISOR_GUEST is boolean)
INFO
Published Date :
Feb. 26, 2025, 7:01 a.m.
Last Modified :
Oct. 24, 2025, 6:52 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Review the usage of init-annotated symbols with EXPORT_SYMBOL.
- Consider removing __init annotation or EXPORT_SYMBOL.
- Update the Linux kernel to a version with the fix.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-49726.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-49726 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-49726
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-49726 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-49726 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Oct. 24, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-908 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.49 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 5.18.6 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.124 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.3 up to (excluding) 5.4.200 Added Reference Type kernel.org: https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Feb. 26, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: clocksource: hyper-v: unexport __init-annotated hv_init_clocksource() EXPORT_SYMBOL and __init is a bad combination because the .init.text section is freed up after the initialization. Hence, modules cannot use symbols annotated __init. The access to a freed symbol may end up with kernel panic. modpost used to detect it, but it has been broken for a decade. Recently, I fixed modpost so it started to warn it again, then this showed up in linux-next builds. There are two ways to fix it: - Remove __init - Remove EXPORT_SYMBOL I chose the latter for this case because the only in-tree call-site, arch/x86/kernel/cpu/mshyperv.c is never compiled as modular. (CONFIG_HYPERVISOR_GUEST is boolean) Added Reference https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2 Added Reference https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1 Added Reference https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102 Added Reference https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626 Added Reference https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d